package org.jash.day7.utils;

import org.jash.day7.entity.DataBean;
import org.jash.day7.entity.NewsEntity;

import java.util.List;

import io.reactivex.rxjava3.core.Observable;

public class ConStruct {
    public interface INewsModel{
        Observable<NewsEntity> getTopHot();
    }
    public interface INewsPresenter {
        void loadTopHot();
    }
    public interface INewsView {
        void success(List<DataBean> list);
        void failure(Throwable t);
    }
    public interface IBlankModel{
        List<DataBean> getTopHot();
    }
    public interface IBlankPresenter {
        void loadTopHot();
    }
    public interface IBlankView {
        void success(List<DataBean> list);
        void failure(Throwable t);
    }
}
